package com.zcurd.common.util.java11;

import com.jfinal.proxy.ProxyFactory;

/**
 * Proxy
 */
public class Proxy {
	
	static ProxyFactory proxyFactory = new ProxyFactory();
	
	/**
	 * 获取代理对象
	 * @param target 被代理的类
	 * @return 代理对象
	 */
	public static <T> T get(Class<T> target) {
		proxyFactory.setProxyCompiler(new ProxyCompiler11());
		return proxyFactory.get(target);
	}
}